package junior.db.dao.ext;

import com.google.common.collect.Lists;

import java.util.List;

public abstract class ExtHandlerRegistry {
    private static final List<IExtHandler> HANDLERS = Lists.newArrayList();

    public static void register(IExtHandler handler) {
        HANDLERS.add(handler);
    }
    
    public static void unregister(IExtHandler handler) {
        HANDLERS.remove(handler);
    }
    
    public static List<IExtHandler> getHandlers() {
        return HANDLERS;
    }
}
